<?php

class ShareTouchAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_INT
    );

    /**
     * 点击链接
     * @param $touchUser
     * @param $shareCode
     * @param $reqTime
     * @return SzResponse
     */
    public function execute($touchUser, $shareCode, $reqTime)
    {
        GameService::get()->validateMultiRequestTimeDelta($touchUser, $reqTime);
        return $this->buildResponse(array(
            ShareService::get()->touch($touchUser, $shareCode, $reqTime)
        ));
    }
}